package com.tom.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

/**
 * Added by Tom on 2024/04/03.
 */
public class DavidReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        //  2----------，收到你的信息了
        Log.d("TAG", "2----------，巴扎黑 收到你的信息了");

        Toast.makeText(context, " 2----------，收到你的信息了", Toast.LENGTH_SHORT).show();
        Intent intent1 =new Intent();
        intent1.setAction("com.maniu.receiver2");
        context.sendBroadcast(intent1);
    }

}
